﻿using SheepStorage.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SheepStorage.Service.Interface
{
    public interface IRolesService
    {
		/// <summary>
		/// 查询所有角色
		/// </summary>
		/// <param name="roleName"></param>
		/// <returns></returns>
		Task< List<Role>> GetAllRoles(string? roleName);


		//添加角色
		Task<int> AddRole(Role role);

		/// <summary>
		/// 查看角色详细信息
		/// </summary>
		/// <param name="RoleId"></param>
		/// <returns></returns>
		Task<Role> GetAllRolesById(int RoleId);

		//逻辑删除角色信息
		Task<int> DeleteRole(int RoleId);
		//修改角色信息
		  Task<int> UpdateRole(Role role);
		//根据角色分配菜单权限
		Task<int> AddMenuToRole(int RoleId, List<int> menuIds);

	}
}
